<!DOCTYPE html>
<style>
  iframe {
    float: left;
    height: 100%;
    width: 100%; 
  }
</style> 
<iframe  id="target" name="content" srcdoc="<div style='width: 300px; height:400px; background: blue'></div>" style="height: 600px;"></iframe>

